package com.bootdo.system.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.bootdo.system.dao.BizCustomerPayDao;
import com.bootdo.system.domain.BizCustomerPayDO;
import com.bootdo.system.service.BizCustomerPayService;



@Service
public class BizCustomerPayServiceImpl implements BizCustomerPayService {
	@Autowired
	private BizCustomerPayDao bizCustomerPayDao;
	
	@Override
	public BizCustomerPayDO get(String tid){
		return bizCustomerPayDao.get(tid);
	}
	
	@Override
	public List<BizCustomerPayDO> list(Map<String, Object> map){
		return bizCustomerPayDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return bizCustomerPayDao.count(map);
	}
	
	@Override
	public int save(BizCustomerPayDO bizCustomerPay){
		return bizCustomerPayDao.save(bizCustomerPay);
	}
	
	@Override
	public int update(BizCustomerPayDO bizCustomerPay){
		return bizCustomerPayDao.update(bizCustomerPay);
	}
	
	@Override
	public int remove(String tid){
		return bizCustomerPayDao.remove(tid);
	}
	
	@Override
	public int batchRemove(String[] tids){
		return bizCustomerPayDao.batchRemove(tids);
	}

    @Override
    public BizCustomerPayDO getByCustId(String tid) {
        Map<String, String> request = new HashMap<>();
        request.put("custID", tid);
        return bizCustomerPayDao.getByCustId(request);
    }

    @Override
    public List<BizCustomerPayDO> history(String tid) {
        Map<String, String> request = new HashMap<>();
        request.put("custID", tid);
        return bizCustomerPayDao.history(request);
    }

    @Override
    public void updateOtherInvidate(String custId) {
        bizCustomerPayDao.updateOtherInvidate(custId);
    }
	
}
